//
//  GLAProduct.h
//  Q1SDK_overseas
//
//  Created by geekluo on 2022/7/28.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
/**
 * @brief 内购商品信息对象
 */

NS_ASSUME_NONNULL_BEGIN

@interface GLAProduct : NSObject

///内购id
@property (nonatomic, strong) NSString *productId;
///商品本地化title  eg. 6元充值
@property (nonatomic, strong) NSString *localizedTitle;
///商品本地描述 eg. 购买后您可以获得60灵玉
@property (nonatomic, strong) NSString *localizedDescription;
///国家代码  标准ISO  eg. US、CN
@property (nonatomic, strong) NSString *countryCode;
///货币代码  标准ISO 4217 eg. USD、CNY
@property (nonatomic, strong) NSString *currencyCode;
///本地化货币符号 eg. ￥、$
@property (nonatomic, strong) NSString *localCurrencySymbol;
///支付金额
@property (nonatomic, assign) float amount;
///本地化价格  货币符号+金额   eg. $ 0.99、￥ 6.00
@property (nonatomic, strong) NSString *localePrice;
///缓存本地商品对象
@property (nonatomic, strong) SKProduct *product;

+ (GLAProduct *)productWithProduct:(SKProduct *)product;
@end

NS_ASSUME_NONNULL_END
